package com.bootdo.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.shop.dao.ProductSpecificationDao;
import com.bootdo.shop.domain.ProductSpecificationDO;
import com.bootdo.shop.service.ProductSpecificationService;



@Service
public class ProductSpecificationServiceImpl implements ProductSpecificationService {
	@Autowired
	private ProductSpecificationDao productSpecificationDao;
	
	@Override
	public ProductSpecificationDO get(Long productSpecId){
		return productSpecificationDao.get(productSpecId);
	}
	
	@Override
	public List<ProductSpecificationDO> list(Map<String, Object> map){
		return productSpecificationDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return productSpecificationDao.count(map);
	}
	
	@Override
	public int save(ProductSpecificationDO productSpecification){
		return productSpecificationDao.save(productSpecification);
	}
	
	@Override
	public int update(ProductSpecificationDO productSpecification){
		return productSpecificationDao.update(productSpecification);
	}
	
	@Override
	public int remove(Long productSpecId){
		return productSpecificationDao.remove(productSpecId);
	}
	
	@Override
	public int batchRemove(Long[] productSpecIds){
		return productSpecificationDao.batchRemove(productSpecIds);
	}
	
}
